/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.goodsspecs.entity;

import com.jeeplus.modules.goodsstore.entity.GoodsStore;
import javax.validation.constraints.NotNull;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 商品规格Entity
 * @author w
 * @version 2021-03-22
 */
public class GoodsSpec extends DataEntity<GoodsSpec> {
	
	private static final long serialVersionUID = 1L;
	private GoodsStore goodsStore;		// 主商品
	private String specName;		// 规格名称
	private String specPic;		// 规格缩略图
	private Double specIntegral;		// 积分
	private Double specPrice;		// 价格
	private String specStatus;		// 状态
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间
	
	public GoodsSpec() {
		super();
	}

	public GoodsSpec(String id){
		super(id);
	}

	@NotNull(message="主商品不能为空")
	@ExcelField(title="主商品", fieldType=GoodsStore.class, value="goodsStore.name", align=2, sort=1)
	public GoodsStore getGoodsStore() {
		return goodsStore;
	}

	public void setGoodsStore(GoodsStore goodsStore) {
		this.goodsStore = goodsStore;
	}
	
	@ExcelField(title="规格名称", align=2, sort=2)
	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}
	
	@ExcelField(title="规格缩略图", align=2, sort=3)
	public String getSpecPic() {
		return specPic;
	}

	public void setSpecPic(String specPic) {
		this.specPic = specPic;
	}
	
	@ExcelField(title="积分", align=2, sort=4)
	public Double getSpecIntegral() {
		return specIntegral;
	}

	public void setSpecIntegral(Double specIntegral) {
		this.specIntegral = specIntegral;
	}
	
	@ExcelField(title="价格", align=2, sort=5)
	public Double getSpecPrice() {
		return specPrice;
	}

	public void setSpecPrice(Double specPrice) {
		this.specPrice = specPrice;
	}
	
	@ExcelField(title="状态", dictType="goods_store_status", align=2, sort=6)
	public String getSpecStatus() {
		return specStatus;
	}

	public void setSpecStatus(String specStatus) {
		this.specStatus = specStatus;
	}
	
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}
		
}